package cn.ccit.entites.record;
/**
 * 结算菜品明细
 * @author Administrator
 *
 */
public class PayOrderRecordItem extends BaseRecordItem {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String enumType;
	private int enumCode;
	private String enumName;
	private int dishId;
	private String dishName;
	private int dishNum=1;
	private int diningTableID;
	private String diningTableName;
	private int tid;
	private String tname;
	private static PayOrderRecordItem pItem=null;
	
	public static PayOrderRecordItem  getPayOrderItemFromDishOrderItem(DishOrderRecordItem ditem ) {
		//if(pItem ==null){
			pItem=new PayOrderRecordItem();
		//}
		pItem.setId(ditem.getId());
		pItem.setCreatTime(ditem.getCreatTime());
		 pItem.setCreatUid(ditem.getCreatUid());
		 pItem.setCreatUname(ditem.getCreatUname());
		 pItem.setDiningTableID(ditem.getDiningTableID());
		 pItem.setDiningTableName(ditem.getDiningTableName());
		 pItem.setEnumCode(ditem.getEnumCode());
		 pItem.setEnumName(ditem.getEnumName());
		 pItem.setEnumType(ditem.getEnumType());
		 pItem.setLastModfiyTime(ditem.getLastModfiyTime());
		 pItem.setLastModfiyUid(ditem.getLastModfiyUid());
		 pItem.setLastModfiyUname(ditem.getLastModfiyUname());
		 pItem.setName(ditem.getName());
		 pItem.setOrderDate(ditem.getOrderDate());
		 pItem.setOrderMonth(ditem.getOrderMonth());
		 pItem.setOrderYear(ditem.getOrderYear());
		 pItem.setSerialsNumber(ditem.getSerialsNumber());
		 pItem.setTid(ditem.getTid());
		 pItem.setTname(ditem.getTname());
		 pItem.setDishId(ditem.getDishId());
		 pItem.setDishName(ditem.getDishName());
		 pItem.setDishNum(ditem.getDishNum());
		 pItem.setPrice(ditem.getPrice());
		 return pItem;
	}
	public String getEnumType() {
		return enumType;
	}
	public void setEnumType(String enumType) {
		this.enumType = enumType;
	}
	
	public String getEnumName() {
		return enumName;
	}
	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}
	public int getDishId() {
		return dishId;
	}
	public void setDishId(int dishId) {
		this.dishId = dishId;
	}
	public String getDishName() {
		return dishName;
	}
	public void setDishName(String dish_name) {
		this.dishName = dish_name;
	}
	public int getDishNum() {
		return dishNum;
	}
	public void setDishNum(int dishNum) {
		this.dishNum = dishNum;
	}
	public int getDiningTableID() {
		return diningTableID;
	}
	public void setDiningTableID(int diningTableID) {
		this.diningTableID = diningTableID;
	}
	public String getDiningTableName() {
		return diningTableName;
	}
	public void setDiningTableName(String diningTableName) {
		this.diningTableName = diningTableName;
	}
	public int getEnumCode() {
		return enumCode;
	}
	public void setEnumCode(int enumCode) {
		this.enumCode = enumCode;
	}
	public int getTid() {
		return tid;
	}
	public void setTid(int tid) {
		this.tid = tid;
	}
	public String getTname() {
		return tname;
	}
	public void setTname(String tname) {
		this.tname = tname;
	}
	
}
